無情的筆記倉庫
Menu
Home
About
Tags
Archives
RSS
Sign In
怎麼檢查 object 是不是空的?
Posted by
Rich
on 2021-09-12
Edit Post
有時候會有這種需求,這次解決的幫手是:
let obj = {} if (Object.keys(obj).length === 0) //true
怕忘記,紀錄一下。
Rich
Follow
Following
Related Posts
一個資淺工程師年末的自我省視
huli
[ 學習筆記系列 ] 後端基礎 (全) - MySQL 語法、基礎 PHP 與 Session / Cookie
ClayGao
[Python Excel自動化1]以VBA運行Python操作Excel
KitPyLearn
Comments
Submit
Sign In
to join in the discussion.
Edit
Submit
Edit
Submit
Reply
Submit